<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let el = console.log;
        let set = new Set(['dushenyan', "jiajia"]) //一般定义形式
        el(set)

        el(set.entries())

        // 遍历set类型
        for (let key of set.keys()) {
            el(key)
        }
        for (let value of set.values()) {
            el(value)
        }
        for (let [key, value] of set.entries()) {
            el(key + ' ' + value)
        }
        set.forEach((value, key, set) => {
            el(value + '---' + key)
        });
    </script>
</head>

<body>

</body>

</html>